package mobi.bantu.web;


import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import mobi.bantu.service.ContactService;

@Controller
@RequestMapping("contact")
public class ContactController {
    @Resource
    private ContactService contractService;

    @RequestMapping("list")
    public String list(HttpServletRequest request, Model model) {
        Map<String, Object> param = new HashMap();
        model.addAttribute("items", contractService.list(param));
        return "contact";
    }

}
